package com.ecoolex.chinadutyfree.retailer.core.mapper;

import com.ecoolex.chinadutyfree.retailer.entity.DirectMailGoodsOrderNo;
import com.ecoolex.chinadutyfree.retailer.entity.DirectMailGoodsOrderNoExample;
import com.ecoolex.framework.common.annotation.Description;
import java.util.List;
import org.apache.ibatis.annotations.Param;
import org.springframework.lang.NonNull;

public interface DirectMailGoodsOrderNoMapper {
    long countByExample(DirectMailGoodsOrderNoExample example);

    int deleteByExample(DirectMailGoodsOrderNoExample example);

    int deleteByPrimaryKey(Long orderNo);

    int insert(DirectMailGoodsOrderNo record);

    int insertSelective(@Param("record") DirectMailGoodsOrderNo record, @Param("selective") DirectMailGoodsOrderNo.Column ... selective);

    DirectMailGoodsOrderNo selectOneByExample(DirectMailGoodsOrderNoExample example);

    List<DirectMailGoodsOrderNo> selectByExample(DirectMailGoodsOrderNoExample example);

    DirectMailGoodsOrderNo selectByPrimaryKey(Long orderNo);

    DirectMailGoodsOrderNo selectByPrimaryKeyWithLogicalDelete(@Param("orderNo") Long orderNo, @Param("andLogicalDeleted") boolean andLogicalDeleted);

    int updateByExampleSelective(@Param("record") DirectMailGoodsOrderNo record, @Param("example") DirectMailGoodsOrderNoExample example, @Param("selective") DirectMailGoodsOrderNo.Column ... selective);

    int updateByExample(@Param("record") DirectMailGoodsOrderNo record, @Param("example") DirectMailGoodsOrderNoExample example);

    int updateByPrimaryKeySelective(@Param("record") DirectMailGoodsOrderNo record, @Param("selective") DirectMailGoodsOrderNo.Column ... selective);

    int updateByPrimaryKey(DirectMailGoodsOrderNo record);

    int batchInsert(@Param("list") List<DirectMailGoodsOrderNo> list);

    int batchInsertSelective(@Param("list") List<DirectMailGoodsOrderNo> list, @Param("selective") DirectMailGoodsOrderNo.Column ... selective);

    int logicalDeleteByExample(@Param("example") DirectMailGoodsOrderNoExample example);

    int logicalDeleteByPrimaryKey(Long orderNo);
}